package cn.java86.print;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestPRinter {
    public static void main(String[] args) {
        Printer p=new Printer();
        p.setBrand("惠普炫彩系列");
        p.setPrice(1599);
        p.setInk(new ColorFulInk());
        TextPaper p2=new TextPaper();
        p2.setWords(12);
        p2.setLines(15);
        p.setPaper(p2);
        p.doPrint("hello world");
    }
}
